﻿<UserControl x:Class="Blackbird.Studio.View.EditableFramesetView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:v="clr-namespace:Blackbird.Studio.View"
             xmlns:vm="clr-namespace:Blackbird.Studio.ViewModel.EntityViewModels"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             d:DataContext="{Binding Source={StaticResource ResourceKey=StaticViewModel}, Path=Instance.EditableFramesetViewModel}">
    <UserControl.Resources>

    </UserControl.Resources>
    <Grid>
        <ListView ItemsSource="{Binding ViewModels}">
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel IsItemsHost="True" />
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.ItemTemplate>
                <DataTemplate DataType="{x:Type vm:EditableFrameViewModel}">
                    <StackPanel>
                        <TextBlock Text="{Binding DisplayName}" />
                        <Border Style="{StaticResource ToolsBorderStyle}">
                            <v:EditableFrameView />
                        </Border>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </Grid>
</UserControl>